/** component，增加install方法，用于全局发布 */
import checkItemIns from './src/views/baseFlowCheckItems/checkItemIns.vue'
import flowCheckItemInst from "./src/views/baseFlowCheckItems/flowCheckItemInst"
import fileInst from "./src/views/baseFlowFileInst/fileInst"
import flowFileInst from "./src/views/baseFlowFileInst/flowFileInst"
import flowRoleInst from "./src/views/baseFlowRoleInst/flowRoleInst"
import activityComponent from "./src/views/baseFlowActivityIns/activityComponent"
import activityViewComponent from "./src/views/baseFlowActivityIns/activityViewComponent"
import flowSkipInst from "./src/views/baseFlowSkipIns/flowSkipInst"

/** install for component */
const globalComponents = [checkItemIns, flowCheckItemInst, fileInst, flowFileInst, flowRoleInst, activityComponent, activityViewComponent, flowSkipInst]
const install = function(Vue, opts = {}) {
  globalComponents.forEach((component) => {
    Vue.component(component.name, component)
  })
}

export default {
  checkItemIns,
  flowCheckItemInst,
  fileInst,
  flowFileInst,
  flowRoleInst,
  activityComponent,
  activityViewComponent,
  flowSkipInst,
  install
}
